package com.design02_Structural.pattern08_decorator;

/**
 * @ClassName DataLoaderDecorator
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/4 23:31
 */
public abstract class DataLoaderDecorator implements DataLoader {

    private DataLoader wrapper;

    public DataLoaderDecorator(DataLoader wrapper) {
        this.wrapper = wrapper;
    }

    @Override
    public String read() {
        return wrapper.read();
    }
    @Override
    public void write(String data) {
        wrapper.write(data);
    }

}
